import request from '@/utils/request'

// 查询防疫记录列表
export function listEpidemicPrevention(query) {
  return request({
    url: '/user/epidemicPrevention/list',
    method: 'get',
    params: query
  })
}

// 查询防疫记录详细
export function getEpidemicPrevention(id) {
  return request({
    url: '/user/epidemicPrevention/' + id,
    method: 'get'
  })
}

// 新增防疫记录
export function addEpidemicPrevention(data) {
  return request({
    url: '/user/epidemicPrevention',
    method: 'post',
    data: data
  })
}

// 修改防疫记录
export function updateEpidemicPrevention(data) {
  return request({
    url: '/user/epidemicPrevention',
    method: 'put',
    data: data
  })
}

// 删除防疫记录
export function delEpidemicPrevention(id) {
  return request({
    url: '/user/epidemicPrevention/' + id,
    method: 'delete'
  })
}
